#!/bin/sh
dnf config-manager --enable powertools
dnf update -y
yum install wget xz-devel xmlto rsync python3-docutils python3-devel pesign perl-devel perl asciidoc audit-libs-devel binutils-devel  clang  java-devel kabi-dw libcap-devel 
yum install libcap-ng-devel libmnl-devel llvm newt-devel nss-tools numactl-devel 
wget https://mirrors.aliyun.com/centos-vault/8.5.2111/BaseOS/Source/SPackages/kernel-4.18.0-348.7.1.el8_5.src.rpm
rpm -ivh kernel-4.18.0-348.7.1.el8_5.src.rpm
cd /root/rpmbuild
yum install -y rpm-build epel-release
cd SPECS
rpmbuild -ba kernel.spec
